#include "text_stream.h"

//ChpProp
ChpProp::ChpProp()
{
}

ChpProp::ChpProp(const ChpProp& chpprop)
{
    this->m_alt_language_ = chpprop.m_alt_language_;
    this->m_language_ = chpprop.m_language_;
}

string ChpProp::GetAltLang() const
{
    return m_alt_language_;
}

void ChpProp::SetAltLang(string altlang)
{
    m_alt_language_ = altlang;
}

string ChpProp::GetLang() const
{
    return m_language_;
}

void ChpProp::SetLang(string lang)
{
    m_language_ = lang;
}

// //ChpProp1
// ChpProp1::ChpProp1()
// {
// }

// ChpProp1::ChpProp1(const ChpProp1& chpprop1)
// {
//     this->m_alt_language_1 = chpprop1.m_alt_language_1;
//     this->m_language_1 = chpprop1.m_language_1;
// }

// string ChpProp1::GetAltLang1() const
// {
//     return m_alt_language_1;
// }

// void ChpProp1::SetAltLang1(string altlang1)
// {
//     m_alt_language_1 = altlang1;
// }

// string ChpProp1::GetLang1() const
// {
//     return m_language_1;
// }

// void ChpProp1::SetLang1(string lang1)
// {
//     m_language_1 = lang1;
// }

//PapProp
PapProp::PapProp() {}

PapProp::PapProp(const PapProp& papprop)
{
    this->m_align_mode_ = papprop.m_align_mode_;
}

string PapProp::GetAlignMode() const
{
    return m_align_mode_;
}

void PapProp::SetAlignMode(string aligmode)
{
    m_align_mode_ = aligmode;
}

//object of Chp array
CabsObject::CabsObject()
{
}

CabsObject::CabsObject(const CabsObject& cabsobj)
{
    this->m_begin_ = cabsobj.m_begin_;
    this->m_ccp_ = cabsobj.m_ccp_;
    this->m_prop_ = cabsobj.m_prop_;
}

int CabsObject::GetBegin() const
{
    return m_begin_;
}

void CabsObject::SetBegin(int begin)
{
    m_begin_ = begin;
}

int CabsObject::GetCcp() const
{
    return m_ccp_;
}

void CabsObject::SetCcp(int ccp)
{
    m_ccp_ = ccp;
}

ChpProp CabsObject::GetChpProp() const
{
    return m_prop_;
}

void CabsObject::SetChpProp(ChpProp prop)
{
    m_prop_ = prop;
}

// ChpProp1 CabsObject::GetChpProp1() const
// {
//     return m_prop_1;
// }

// void CabsObject::SetChpProp1(ChpProp1 prop1)
// {
//     m_prop_1 = prop1;
// }

// void CabsObject::SetChpProp2(ChpProp1 prop1, ChpProp prop)
// {
//     m_prop_1 = prop1;
//     m_prop_ = prop;
// }

//object of Chp array
PabsObject::PabsObject() {}

PabsObject::PabsObject(const PabsObject& pabsobj)
{
    this->m_begin_ = pabsobj.m_begin_;
    this->m_ccp_ = pabsobj.m_ccp_;
    this->m_prop_ = pabsobj.m_prop_;
}

int PabsObject::GetBegin() const
{
    return m_begin_;
}

void PabsObject::SetBegin(int begin)
{
    m_begin_ = begin;
}

int PabsObject::GetCcp() const
{
    return m_ccp_;
}

void PabsObject::SetCcp(int ccp)
{
    m_ccp_ = ccp;
}

PapProp PabsObject::GetPapProp() const
{
    return m_prop_;
}

void PabsObject::SetPapProp(PapProp prop)
{
    m_prop_ = prop;
}

//Chp array
ChpData::ChpData()
{
}    

ChpData::ChpData(const ChpData& cdata)
{
    this->m_carray = cdata.m_carray;
}

vector<CabsObject *> ChpData::GetCarray() const
{
    return m_carray;
}
CabsObject ChpData::GetCabsObject() const
{
    return m_cabsobject;
}

void ChpData::SetCabsObject(CabsObject cabsobject){
    m_cabsobject = cabsobject;
}

//Pap array
PapData::PapData()
{
}

PapData::PapData(const PapData& pdata)
{
    this->m_parray = pdata.m_parray;
}

vector<PabsObject *> PapData::GetParray() const
{
    return m_parray;
}

PabsObject PapData::GetPabsObject() const
{
    return m_pabsobject;
}

void PapData::SetPabsObject(PabsObject pabsobject){
    m_pabsobject = pabsobject;
}

ChpTbl::ChpTbl() {}

ChpTbl::ChpTbl(const ChpTbl& chptbl)
{
    this->c_data_ = chptbl.c_data_;
}

ChpData ChpTbl::GetData() const
{
    return c_data_;
}

void ChpTbl::SetData(ChpData data)
{
    c_data_ = data;
}

PapTbl::PapTbl() {}

PapTbl::PapTbl(const PapTbl& paptbl)
{
    this->p_data_ = paptbl.p_data_;
}

PapData PapTbl::GetDataP() const
{
    return p_data_;
}

void PapTbl::SetDataP(const PapData data)
{
    p_data_ = data;
}

TextStream::TextStream() {
}

TextStream::TextStream(const TextStream& textstream)
{
    this->m_chptbl_ = textstream.m_chptbl_;
    this->m_paptbl_ = textstream.m_paptbl_;
    this->m_text_ = textstream.m_text_;
}

string TextStream::GetText() const
{
    return m_text_;
}

void TextStream::SetText(string text)
{
    m_text_ = text;
}

ChpTbl TextStream::GetChpTbl() const
{
    return m_chptbl_;
}

void TextStream::SetChpTbl(ChpTbl chptbl)
{
    m_chptbl_ = chptbl;
}

PapTbl TextStream::GetPapTbl() const
{
    return m_paptbl_;
}

void TextStream::SetPapTbl(PapTbl paptbl)
{
    m_paptbl_ = paptbl;
}